package com.kedacom.config.configuration;

import com.kedacom.config.AbstractConfiguration;
import com.kedacom.config.annotation.ConfigProperty;


public class EmailConfiguration extends AbstractConfiguration {

	@ConfigProperty("email.host")
	private String emailHost; // host地址
	@ConfigProperty("email.username")
	private String emailUsername; // 用户名
	@ConfigProperty("email.password")
	private Integer emailPassword; // 密码

	public String getEmailHost() {
		return emailHost;
	}

	public void setEmailHost(String emailHost) {
		this.emailHost = emailHost;
	}

	public String getEmailUsername() {
		return emailUsername;
	}

	public void setEmailUsername(String emailUsername) {
		this.emailUsername = emailUsername;
	}

	public Integer getEmailPassword() {
		return emailPassword;
	}

	public void setEmailPassword(Integer emailPassword) {
		this.emailPassword = emailPassword;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer("EmailConfiguration[");
		sb.append("emailHost=" + getEmailHost() + ",");
		sb.append("emailUsername=" + getEmailUsername() + ",");
		sb.append("emailPassword=" + getEmailPassword() + "]");
		return sb.toString();
	}
}
